package com.arunsawad.ilertu.common;

import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;

import com.arunsawad.ilertu.activity.SignIn;

public class Validator {
	public static void Validate(Context context, SharedPreferences preferences) {
		String username = preferences.getString(Constants.PREF_USER_NAME, "");
		if (username.equals("")) {
			Intent intent = new Intent(context, SignIn.class);
			context.startActivity(intent);
		}
	}
}
